package parspack;

import java.util.HashSet;
import java.util.Set;

class Answer {

	public static Set<String> create(Set<String> inputList) {
		Set<String> answer = new HashSet<String>();
		for (String element : inputList) {
			for (Record x : Application.listRecords) {
				for(Posting y : x.listPostings)
				{

					if (y.equals(new Posting(element, ""))) 
					{
						for(Posting z : x.listPostings)
							answer.add(z.name);
						break;
					}
				}
			}
		}
		return answer;
	}
}
